package org.longs.util;

public class Utils {

    public static String getBit(byte by) {
        return String.valueOf((by >> 7) & 0x1) +
                ((by >> 6) & 0x1) +
                ((by >> 5) & 0x1) +
                ((by >> 4) & 0x1) +
                ((by >> 3) & 0x1) +
                ((by >> 2) & 0x1) +
                ((by >> 1) & 0x1) +
                ((by) & 0x1);
    }
}